<template>
    <div class="title" @click="back">
        <div>
            <img src="../../static/image/left.png" class="back">
        </div>
        <div class="title_info">
            <img src="../../static/image/icon_start.png" class="title_icon">
            <span class="title_name">{{titleName}}</span>
        </div>
    </div>
</template>

<script>
    export default {
        props: {
            titleName: String
        },
        methods: {
            back() {
                this.$router.go(-1)
            }

        }

    }
</script>

<style scoped>
    .title {
        display: flex;
        align-items: center;
        border-bottom: 1px #ccc solid;
        padding: 5px 0;
    }

    .title_info {
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
        margin-left: -50px;

    }

    .title_icon {
        width: 50px;
        height: 50px;
    }

    .back {
        width: 40px;
        height: 40px;
        padding-left: 5px;
    }

    .title_name {
        font-size: 25px;
        font-weight: bold;
    }
</style>